package com.ruiysoft.entity.order;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author liyahui
 * @since 2018-12-01
 */
@TableName("order_receiver_info")
public class OrderReceiverInfo extends Model<OrderReceiverInfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("order_id")
    private Long orderId;

    @TableField("order_no")
    private String orderNo;

    @TableField("user_id")
    private Long userId;

    @TableField("user_address_id")
    private Integer userAddressId;

    @TableField("receiver_name")
    private String receiverName;

    @TableField("receiver_phone")
    private String receiverPhone;

    @TableField("receiver_address")
    private String receiverAddress;

    private String province;

    @TableField("province_code")
    private String provinceCode;

    private String city;

    @TableField("city_code")
    private String cityCode;

    private String district;

    @TableField("districe_code")
    private String districeCode;

    private String area;

    @TableField("area_code")
    private String areaCode;

    @TableField("create_time")
    private Date createTime;

    @TableField("postal_code")
    String postalCode;

    public Long getId() {
        return id;
    }

    public OrderReceiverInfo setId(Long id) {
        this.id = id;
        return this;
    }
    public Long getOrderId() {
        return orderId;
    }

    public OrderReceiverInfo setOrderId(Long orderId) {
        this.orderId = orderId;
        return this;
    }
    public String getOrderNo() {
        return orderNo;
    }

    public OrderReceiverInfo setOrderNo(String orderNo) {
        this.orderNo = orderNo;
        return this;
    }
    public Long getUserId() {
        return userId;
    }

    public OrderReceiverInfo setUserId(Long userId) {
        this.userId = userId;
        return this;
    }
    public Integer getUserAddressId() {
        return userAddressId;
    }

    public OrderReceiverInfo setUserAddressId(Integer userAddressId) {
        this.userAddressId = userAddressId;
        return this;
    }
    public String getReceiverName() {
        return receiverName;
    }

    public OrderReceiverInfo setReceiverName(String receiverName) {
        this.receiverName = receiverName;
        return this;
    }
    public String getReceiverPhone() {
        return receiverPhone;
    }

    public OrderReceiverInfo setReceiverPhone(String receiverPhone) {
        this.receiverPhone = receiverPhone;
        return this;
    }
    public String getReceiverAddress() {
        return receiverAddress;
    }

    public OrderReceiverInfo setReceiverAddress(String receiverAddress) {
        this.receiverAddress = receiverAddress;
        return this;
    }
    public String getProvince() {
        return province;
    }

    public OrderReceiverInfo setProvince(String province) {
        this.province = province;
        return this;
    }
    public String getProvinceCode() {
        return provinceCode;
    }

    public OrderReceiverInfo setProvinceCode(String provinceCode) {
        this.provinceCode = provinceCode;
        return this;
    }
    public String getCity() {
        return city;
    }

    public OrderReceiverInfo setCity(String city) {
        this.city = city;
        return this;
    }
    public String getCityCode() {
        return cityCode;
    }

    public OrderReceiverInfo setCityCode(String cityCode) {
        this.cityCode = cityCode;
        return this;
    }
    public String getDistrict() {
        return district;
    }

    public OrderReceiverInfo setDistrict(String district) {
        this.district = district;
        return this;
    }
    public String getDistriceCode() {
        return districeCode;
    }

    public OrderReceiverInfo setDistriceCode(String districeCode) {
        this.districeCode = districeCode;
        return this;
    }
    public String getArea() {
        return area;
    }

    public OrderReceiverInfo setArea(String area) {
        this.area = area;
        return this;
    }
    public String getAreaCode() {
        return areaCode;
    }

    public OrderReceiverInfo setAreaCode(String areaCode) {
        this.areaCode = areaCode;
        return this;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public OrderReceiverInfo setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OrderReceiverInfo{" +
        "id=" + id +
        ", orderId=" + orderId +
        ", orderNo=" + orderNo +
        ", userId=" + userId +
        ", userAddressId=" + userAddressId +
        ", receiverName=" + receiverName +
        ", receiverPhone=" + receiverPhone +
        ", receiverAddress=" + receiverAddress +
        ", province=" + province +
        ", provinceCode=" + provinceCode +
        ", city=" + city +
        ", cityCode=" + cityCode +
        ", district=" + district +
        ", districeCode=" + districeCode +
        ", area=" + area +
        ", areaCode=" + areaCode +
        ", createTime=" + createTime +
        "}";
    }

    public String getPostalCode() {
        return postalCode;
    }

    public void setPostalCode(String postalCode) {
        this.postalCode = postalCode;
    }
}
